package com.west_traveler.entity;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.LinkedList;
import java.util.List;

/**
 * Description: xxx
 * Date:2016年12月12日14:39
 *
 * @author: 刘悦.
 */

public class TempDS implements Parcelable {

    private String smallLogo;
    private List<TempList> list = new LinkedList<>();

    public TempDS() {
    }

    public TempDS(String smallLogo, List<TempList> list) {

        this.smallLogo = smallLogo;
        this.list = list;
    }


    protected TempDS(Parcel in) {
        smallLogo = in.readString();
        list = in.createTypedArrayList(TempList.CREATOR);
    }

    public static final Creator<TempDS> CREATOR = new Creator<TempDS>() {
        @Override
        public TempDS createFromParcel(Parcel in) {
            return new TempDS(in);
        }

        @Override
        public TempDS[] newArray(int size) {
            return new TempDS[size];
        }
    };

    public String getSmallLogo() {
        return smallLogo;
    }

    public void setSmallLogo(String smallLogo) {
        this.smallLogo = smallLogo;
    }

    public List<TempList> getList() {
        return list;
    }

    public void setList(List<TempList> list) {
        this.list = list;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(smallLogo);
        parcel.writeTypedList(list);
    }
}
